package com.example.service.impl;

import com.example.entity.Course;
import com.example.mapper.CourseMapper;
import com.example.service.CourseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author： wzz
 * @date： 2021-12-21 17:54
 */

@Service
public class CourseServiceImpl implements CourseService {

    @Resource
    private CourseMapper courseMapper;

    @Override
    public int insertVideo(String book_name,String menu_topic, String video) {
        return courseMapper.insertVideo(book_name,menu_topic, video);
    }

    @Override
    public String videoUrl(String book_name,String menu_topic) {
        return courseMapper.videoUrl(book_name,menu_topic);
    }

    @Override
    public int videoDuration(String  book_name,String  menu_topic, long duration) {
        return courseMapper.videoDuration(book_name,menu_topic, duration);
    }

    @Override
    public int updateCourse(String book_name,String menu_topic ,String video, String ppt) {
        return courseMapper.updateCourse(book_name,menu_topic, video, ppt);
    }

    @Override
    public List<Course> selectTrue(String book_name, String menu_topic) {
        return courseMapper.selectTrue(book_name,menu_topic);
    }
    @Override
    public int insertFile(String book_name,String menu_topic, String file) {
        return courseMapper.insertFile(book_name,menu_topic, file);
    }

    @Override
    public String fileUrl(String book_name,String menu_topic) {
        return courseMapper.fileUrl(book_name,menu_topic);
    }
}
